package pl.skubicha.service.dto.util;

import java.util.Set;

import pl.skubicha.domain.Groups;
import pl.skubicha.domain.Subjects;
import pl.skubicha.domain.Users;
import pl.skubicha.response.SubjectDTO;

public class SubjectsTestUtil {

	public static SubjectDTO createDTO( Integer id, String subjectName, Users user, Set< Groups > groups ) {
		final SubjectDTO dto = new SubjectDTO();
		dto.setId( id );
		dto.setSubjectName( subjectName );
		dto.setGroups( groups );
		dto.setUser( user );
		return dto;
	}

	public static Subjects createModelObject( Integer id, String subjectName, Users user, Set< Groups > groups ) {
		final Subjects subjects = new Subjects();
		subjects.setId( id );
		subjects.setSubjectName( subjectName );
		subjects.setGroups( groups );
		subjects.setUsers( user );
		return subjects;
	}
}
